package com.sesame.user.entity;

import kim.sesame.common.utils.UUIDUtil;
import lombok.Data;

import java.util.Date;

@Data
public class User {
    private String id;
    private String name;
    private Date createTime;

    public User() {
    }

    public User(String name) {
        this.id = UUIDUtil.getShortUUID();
        this.name = name;
        this.createTime = new Date();
    }
}
